package cn.kgc.ffzw.day22.homework;

public class Shopping {
    //商品名称
    String name;
    //价格
    Integer price;
    //件数
    Integer count;
    //总价
    Integer totalPrice;

    public Shopping(String name,Integer price,Integer count){
        this.name=name;
        this.price=price;
        this.count=count;
        this.totalPrice=price*count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = totalPrice;
    }
}
